{% from 'components/field.html' import render_field %}
{% extends "layout.html" %}

{% block title %}{% trans %}Login{% endtrans %}{% endblock %}

{% block header %}
{% endblock %}

{% block body %}
    <form method="POST" action="{{ request.url }}">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">Login</h3>
            </div>
            <div class="panel-body">
                {{ form.csrf_token }}
                {{ render_field(form.username) }}
                {{ render_field(form.password) }}
            </div>
            <div class="panel-footer">
                <button type="submit" class="btn btn-default" style="margin-right: 1em;">
                    <i class="fa fa-sign-in"></i> {% trans %}Login{% endtrans %}
                </button>
                <span style="margin-right: 1em;">{% trans %}or{% endtrans %}</span>
                <a href="{{ url_for('auth.register') }}">{% trans %}Register{% endtrans %}</a>
            </div>
        </div>
    </form>
{% endblock %}
